<template>
  <div id="app">
    <router-view />
    <footer-guide v-if="$route.meta.showFooter" />
  </div>
</template>
<script>
import FooterGuide from "components/FooterGuide/FooterGuide";
import {mapActions} from 'vuex';
export default {
  components: {
    FooterGuide,
  },
  mounted() {
    //因为地址要显示的快所有要提取获取
    this.getAddress()
    //获取用户信息是否存在
    this.getUserInfo()
  },
  methods:{
    //有数组也有对象的函数得到 这里是数组格式多个有, 隔开
    ...mapActions(['getAddress','getUserInfo'])
  }
};
</script>
<style lang="stylus" rel="stylesheet/stylus">
.app {
  width: 100%;
  height: 100%;
  background: #f5f5f5;
}
</style>